package com.liuwei.spring.cloud.framework.db.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

/**
 * @author : evan.liu
 * @version V1.0
 * @Description: TODO
 * @date Date : 2022年05月03日 5:35 下午
 */
@Data
public class BaseOptimisticLockerDeleteVersionEntity extends BaseIdEntity{

    @Version
    @TableField(value = "version", fill = FieldFill.INSERT)
    private Integer version = 0;

    /** 兼容数据库逻辑删除的唯一性 **/
    @TableField(value="deleted_version")
    private String deletedVersion;

}
